
window.versionMap = {
    1: [0, 0, 0, 0, 0, 0, 0, 0, 0],
    2: [1, 0, 0, 0, 0, 0, 0, 0, 0],
    3: [0, 1, 0, 0, 0, 0, 0, 0, 0],
    4: [0, 0, 1, 0, 0, 0, 0, 0, 0],
    5: [1, 1, 0, 0, 0, 0, 0, 0, 0],
    6: [1, 0, 1, 0, 0, 0, 0, 0, 0],
    7: [0, 1, 1, 0, 0, 0, 0, 0, 0],
    8: [1, 1, 1, 0, 0, 0, 0, 0, 0],
    9: [0, 0, 0, 1, 0, 0, 0, 0, 0],
    10: [0, 0, 0, 0, 1, 0, 0, 0, 0],
    11: [0, 0, 0, 0, 0, 1, 0, 0, 0],
    12: [0, 0, 0, 1, 1, 0, 0, 0, 0],
    13: [0, 0, 0, 1, 0, 1, 0, 0, 0],
    14: [0, 0, 0, 0, 1, 1, 0, 0, 0],
    15: [0, 0, 0, 1, 1, 1, 0, 0, 0],
    16: [0, 0, 0, 0, 0, 0, 1, 0, 0],
    17: [0, 0, 0, 0, 0, 0, 0, 1, 0],
    18: [0, 0, 0, 0, 0, 0, 0, 0, 1],
    19: [0, 0, 0, 0, 0, 0, 1, 1, 0],
    20: [0, 0, 0, 0, 0, 0, 1, 0, 1],
    21: [0, 0, 0, 0, 0, 0, 0, 1, 1],
    22: [0, 0, 0, 0, 0, 0, 1, 1, 1],
    23: [0, 0, 0, 0, 0, 0, 0, 0, 0],
    24: [0, 0, 0, 0, 0, 0, 0, 0, 0],
    25: [1, 1, 1, 1, 1, 1, 1, 1, 1]
}

window.openFeedbackLink = function () {
    if (!window.version) {
        window.version = window.getVersion()
    }
    if (!window.userId) {
        window.userId = window.sessionStore.getItem("userId")
    }
    var link = 'https://unsw.au1.qualtrics.com/jfe/form/SV_7aH694byXuP55Ix?version=' + window.version + '&SID=' + window.userId
    window.close();
    window.location.href = 'https://unsw.au1.qualtrics.com/jfe/form/SV_7aH694byXuP55Ix?version=' + version + '&S1ID=' + userId
}


